import sys
import os
from applications import create_app

# 设置系统默认编码
if sys.platform.startswith('win'):
    import locale
    locale.setlocale(locale.LC_ALL, '')
    os.environ['PYTHONIOENCODING'] = 'utf-8'

app = create_app()

if __name__ == '__main__':
    app.run(debug=True)
